package com.damage.business_dept.service;

import com.damage.common.entity.Supplier;
import com.damage.common.exception.UniqueException;
import com.github.pagehelper.PageInfo;
import com.sun.istack.internal.Nullable;

public interface ISupplierService {

    Integer newSupplier(Supplier supplier)throws UniqueException;

    PageInfo<Supplier> findAll(@Nullable Integer pageNum);

    PageInfo<Supplier> findSupplier(@Nullable Integer pageNum,String name);

    Supplier findById(Integer id);

    Integer update(Supplier supplier);

    Integer deleteById(Integer id);

}
